import request from '@/utils/request'

export function getTree(data: any) {
  return request({
    url: '/Base_Department/TreeJson',
    method: 'post',
    data,
  })
}
export function getList(data: any) {
  return request({
    url: '/Base_Post/GetPageData',
    method: 'post',
    data,
  })
}
export function getPostInfo(data: any) {
  return request({
    url: '/Base_Post/getPostInfo',
    method: 'post',
    data,
  })
}
export function doEdit(data: any) {
  return request({
    url: '/Base_Post/savePost',
    method: 'post',
    data,
  })
}
export function doDelete(data: any) {
  return request({
    url: `/Base_Post/DelPost`,
    method: 'post',
    data,
  })
}
